package yweb

import (
// "log"
)

type ControllerRegister struct {
	routers map[string]ControllerInterface
}

func NewControllerRegister() *ControllerRegister {
	cr := &ControllerRegister{}
	cr.routers = make(map[string]ControllerInterface)
	return cr
}

func (this *ControllerRegister) Add(pattern string, c ControllerInterface) {
	this.addWithMethodParams(pattern, c)
}

func (this *ControllerRegister) addWithMethodParams(pattern string, c ControllerInterface) {
	this.routers[pattern] = c
}
